package com.briup.pts.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface QrcodeMapper {

    @Delete("delete from manager_qrcode where q_animal_id = #{animalId}")
    void deleteByAnimalId(String animalId);

    @Insert("insert into manager_qrcode (q_animal_id, q_image_url)" +
            " values (#{animalId},#{url})")
    void insertQrcode(String animalId, String url);
}
